package com.zhike.common.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class UserUpdateDTO {

    @ApiModelProperty(value = "性别", required = true, example = "1 男，0 女 ")
    @NotNull(message = "缺少参数sex")
    @NotEmpty(message = "参数sex不能为空")
    private String sex;

    @ApiModelProperty(value = "用户昵称", required = true)
    @NotNull(message = "缺少参数nickName")
    @NotEmpty(message = "参数nickName不能为空")
    private String nickName;

}
